#!/bin/sh
#refer to:http://bbs.chinaunix.net/thread-1695255-1-1.html
#shell进度条
b=''

for ((i=0;$i<=100;i+=2))
do
    printf "progress:[%-50s]%d%%\r" $b $i
    sleep 0.1

    b=#$b
done
echo
